using System.Collections.Generic;
using System.Threading.Tasks;
using ERP.EquipmentManage.Dtos;
using Volo.Abp.Application.Services;

namespace ERP.EquipmentManage
{
    /// <summary>
    /// 维护计划与设备点检项目关联服务接口
    /// </summary>
    public interface IPlanDvsubjectService : IApplicationService
    {
        /// <summary>
        /// 保存计划的设备点检项目列表
        /// </summary>
        /// <param name="planCode">计划编码</param>
        /// <param name="dvsubjectIds">设备点检项目ID列表</param>
        /// <returns></returns>
        Task SavePlanDvsubjectsAsync(string planCode, List<int> dvsubjectIds);

        /// <summary>
        /// 获取计划的设备点检项目列表
        /// </summary>
        /// <param name="planCode">计划编码</param>
        /// <returns></returns>
        Task<List<DvsubjectDto>> GetPlanDvsubjectsAsync(string planCode);

        /// <summary>
        /// 删除计划的某个设备点检项目
        /// </summary>
        /// <param name="planCode">计划编码</param>
        /// <param name="dvsubjectId">设备点检项目ID</param>
        /// <returns></returns>
        Task RemovePlanDvsubjectAsync(string planCode, int dvsubjectId);

        /// <summary>
        /// 添加项目到计划
        /// </summary>
        /// <param name="planCode">计划编码</param>
        /// <param name="dvsubjectId">设备点检项目ID</param>
        /// <returns></returns>
        Task AddPlanDvsubjectAsync(string planCode, int dvsubjectId);
    }
} 